package com.xj.homework.pattern.proxy.staticProxy;

public class SubjectProxy implements Subject{
    Subject subject;

    SubjectProxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void study() {
        System.out.println("学习语法基础！！！");
        subject.study();
        System.out.println("学习源码！！！！");
    }
}
